home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8797 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: dragon.solect.com!annex
  2. From: gallantm@kanservu.ca (Matt Gallant)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Linking problems with MMIO-functions.
  5. Date: Mon, 26 Feb 96 07:00:01 GMT
  6. Organization: KanServU Bureau  Aylmer, Ontario Canada
  7. Message-ID: <4grlo3$b2o@dragon.solect.com>
  8. References: <4gkmr6$n5b@hasle.sn.no>
  9. NNTP-Posting-Host: ts1p01.kanservu.ca
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=US-ASCII
  12. X-Newsreader: News Xpress 2.0 Beta #0
  13.  
  14. In article <4gkmr6$n5b@hasle.sn.no>, Ola Nohr <onohr@sn.no> wrote:
  15. >Hello!
  16. >
  17. >My company is porting a Borland 3.1 application to VC++ 4.0 and we 
  18. >have some problems with the MMIO-functions. The error messages we reseive
  19. >are as follows:
  20. >
  21. >... error LNK2001: unresolved external symbol __imp__mmioClose@8
  22. >... error LNK2001: unresolved external symbol __imp__mmioClose@8
  23. >... error LNK2001: unresolved external symbol __imp__mmioAscend@12
  24. >... error LNK2001: unresolved external symbol __imp__mmioAscend@12
  25. >... error LNK2001: unresolved external symbol __imp__mmioCreateChunk@12
  26. >
  27. >What is wrong? I find nothing in the help system...
  28. >Any ideas ?
  29. >
  30. >Thanks in advance....
  31. >
  32. >
  33. >- Ola
  34. >
  35.  
  36. Are you including the import library MMSYSTEM.LIB in your MAKE file or 
  37. project?
  38.  
  39. As you are porting from Borland, you should be aware that Borland usually made 
  40. it common practice  to include the import information for most of the Windows 
  41. APIs in one large LIB file (IMPORT.LIB).  That way, in most cases, the IDE 
  42. would include this one import library in your project, and it would cover all 
  43. the APIs.
  44.  
  45. From what I've seen of MS VC++ make file samples and such, Microsoft tends to 
  46. keep its LIB files for API families separate, rather that lumping them 
  47. altogether.  Therefore, you must make sure that you've got all the required 
  48. LIBs being given to the linker.  From the error messages you report, your code 
  49. is trying to call functions that the linker can't find import records for -- 
  50. so it doesn't know what DLL linking information to put into the EXE.
  51.  
  52. Mind you, I've never actually used VC++.  Perhaps it has settings that allow 
  53. you to specify which import libraries to include??  In any case, you need to 
  54. include the import library for the Multimedia functions.
  55.  
  56. --------------------------------------
  57. Matt Gallant
  58. Aylmer, Ontario Canada
  59.